
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8">
		<title>用户列表</title>
		<!--导入框架样式文件-->
		<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" href="css/bootstrap.min.css" />
		<script type="text/javascript" th:src="@{/js/jquery1.12.4.min.js}" src="js/jquery1.12.4.min.js"></script>
		<script type="text/javascript" th:src="@{/js/bootstrap.min.js}" src="js/bootstrap.min.js"></script>
		<style>

		</style>
	</head>

	<body>
	<div class="container-fluid">
			<div class="panel panel-default">
				<div class="panel-heading clearfix">
					<a href="item-add.html" th:href="@{/user/addUI}"  class="btn btn-primary pull-right" >添加用户</a>
				</div>
						
			<table class="table table-bordered table-hover ">
						<tr class="success">
							<th>编号</th>
							<th>用户名</th>
							<th>密码</th>
							<th>真实姓名</th>
							<th>邮箱</th>
							<th>电话</th>
							<th>操作</th>
						</tr>

						<tr th:each="user:${users}">
							<td th:text="${user.uid}">1</td>
							<td th:text="${user.username}">wc001</td>
							<td th:text="${user.password}">888</td>
							<td th:text="${user.realname}">旺财</td>
							<td th:text="${user.email}">2232323@qq.com</td>
							<td th:text="${user.telephone}">13545889112</td>
							<td>
						      <a class="btn btn-success btn-sm" th:href="@{/user/updateUI(uid=${user.uid})}" href="">修改</a>&nbsp;
                              <a class="btn btn-danger btn-sm" onclick="return confirm('确认删除吗？')" th:href="@{/user/delectById(uid=${user.uid})}">删除</a>
							</td>
						</tr>

					
			</table>
		</div>
	</div>
</body>

</html>